/*
x = NaN;
console.log('typeof NaN: ', typeof NaN);

if (x === x) {
    console.log('x is a number'); // never reached
}
else {
    console.log('x is not a number, !(x === x)'); // always reached
}

if (x != x)
	console.log('x is not a number, x != x');

if (Number.isNaN(x))
	console.log('x is not a number, Number.isNaN(x)');

let right = '\u2714';
let wrong = '\u2718';
console.log('chr(\\u2714): ', right);
console.log('chr(\\u2718): ', wrong);

let s = 'Hello';
console.log("s.toUpperCase(): ", s.toUpperCase());
console.log("s: ", s);

let obj = { x: 1};
obj.x = 2;
obj.y = 3;
console.log('obj: ', obj);
*/

let n = 123;
let v = n.toString();
console.log(`v: ${v}, typeof v: ${typeof v}`);

let binary = "0b" + n.toString(2);
let octal = "0o" + n.toString(8);
let hex = "0x" + n.toString(16);
console.log(`binary: ${binary}, octal: ${octal}, hex: ${hex}`);	
